from pyos7 import *

class App:
    def main(self):
        print("main")
        yield
        
    def mainloop(self):
        sched = Scheduler()
        sched.new(self.main())
        sched.mainloop()
            
if __name__ == '__main__':
   
    app = App()
    app.mainloop()
    